﻿<%@ Assembly Name="Microsoft.SharePoint.IdentityModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="SPLogin.aspx.cs" Inherits="JM.JCY.MasterPage.Login.SPLogin,JM.JCY.MasterPage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=848d1ff1ff3efc7c" MasterPageFile="~/_layouts/LoginMasterPage.master" %> 
<%@ Import Namespace="Microsoft.SharePoint.WebControls" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:EncodedLiteral runat="server" EncodeMethod="HtmlEncode" Id="ClaimsFormsPageTitle" />
上杭检察院内部管理监督系统
</asp:Content>
 
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
<script type="text/javascript" src="/_layouts/JM.JCY.Resource/scripts/jquery-1.6.js"></script>
<script type="text/javascript">
    $(document).ready(function () {

        if (CheckSilverlightInstalled()) {
            $("#<%= vista.ClientID %>").hide();
        }
        else {
            $("#<%= vista.ClientID %>").show();
        }



    });

    function CheckSilverlightInstalled() {
        var isSilverlightInstalled = false;
        try {
            try {
                var slControl = new ActiveXObject('AgControl.AgControl'); //检查IE
                isSilverlightInstalled = true;

            }
            catch (e) {
                if (navigator.plugins["Silverlight Plug-In"]) //检查非IE
                {
                    isSilverlightInstalled = true;
                }
            }
        }
        catch (e) {


        }

        return isSilverlightInstalled;
    }
</script>
 
<div id="SslWarning" style="color:red;display:none">
<SharePoint:EncodedLiteral runat="server" EncodeMethod="HtmlEncode" Id="ClaimsFormsPageMessage" />

</div>
 
    <table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#1075b1">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" background="/_Layouts/JM.JCY.Resource/images/login_03.gif">
    <table width="847" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="318" background="/_Layouts/JM.JCY.Resource/images/login_04.png">
       

        <asp:Label ID="lblBrowser" runat="server" Visible="false" ForeColor="Red"></asp:Label> <br /><br />
        <a style="color: #FF0000; text-decoration: underline; font-size: small; font-weight: bold;" id="xp" 
         runat="server" visible="false">请点击并运行安装 IE8.0</a> 
        <br />
        <a style="color: #FF0000; text-decoration: underline; font-size: small; font-weight: bold; display: none;" id="vista" 
        href="http://10.135.116.167:88/iedownload/Silverlight.exe" runat="server">请点击并运行安装 Silverlight</a>
        <br />
          <asp:Label ID="lblIEFix" runat="server" Visible="true" ForeColor="Red"></asp:Label> <br /><br />
        <a style="color: #FF0000; text-decoration: underline; font-size: small; font-weight: bold;" id="A1" 
         runat="server" visible="false">如果你不能成功安装IE8.0请先安装XP补丁</a> 
 
        
        </td>
      </tr>
      <tr>
        <td height="84">
              <asp:Login ID="loginControl1" FailureText="<%$Resources:wss,login_pageFailureText%>"
                                runat="server" Width="100%" OnLoggingIn="signInControl_LoggingIn" OnAuthenticate="signInControl_Authenticate">
                                <LayoutTemplate>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="381" height="84" background="/_Layouts/JM.JCY.Resource/images/login_06.gif" align="center"> 
         
            </td>
            <td width="162" valign="middle" background="/_Layouts/JM.JCY.Resource/images/login_07.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="44" height="24" valign="bottom"><div align="right"><span class="STYLE3">用户</span></div></td>
                <td width="10" valign="bottom">&nbsp;</td>
                <td height="24" colspan="2" valign="bottom">
                  <div align="left">
                    <asp:TextBox ID="UserName" autocomplete="off" runat="server" class="ms-inputuserfield" Width="99%" />
                  </div></td>
              </tr>
              <tr>
                <td height="24" valign="bottom"><div align="right"><span class="STYLE3">密码</span></div></td>
                <td width="10" valign="bottom">&nbsp;</td>
                <td height="24" colspan="2" valign="bottom">    
                <asp:TextBox ID="password" TextMode="Password" autocomplete="off" runat="server"
                                                                class="ms-inputuserfield" Width="99%" />
                                                                </td>
              </tr>
              <tr>
                <td height="24" valign="bottom"></td>
                <td width="10" valign="bottom">&nbsp;</td>
                <td height="24" valign="bottom"  colspan="2"><asp:checkbox id="RememberMe" text="<%$SPHtmlEncodedResources:wss,login_pageRememberMe%>" runat="server" CssClass="STYLE3" /></td>
              
              </tr>
              <tr></tr>
            </table></td>
            <td width="26"><img src="/_Layouts/JM.JCY.Resource/images/login_08.gif" width="26" height="84"></td>
            <td width="67" background="/_Layouts/JM.JCY.Resource/images/login_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="25"><div align="center">  <asp:ImageButton ID="login" CommandName="Login"
                                                                    runat="server" ImageUrl="/_Layouts/JM.JCY.Resource/images/dl.gif"/></div></td>
              </tr>
              <tr>
                <td height="25"><div align="center"></div></td>
              </tr>
            </table></td>
            <td width="211" background="/_Layouts/JM.JCY.Resource/images/login_10.gif"><table><tr><td><asp:Label ID="FailureText" class="ms-error" runat="server" /></td></tr></table></td>
          </tr>
        </table>
                  </LayoutTemplate>
               </asp:Login>
        </td>
      </tr>
      <tr>
        <td height="206" background="/_Layouts/JM.JCY.Resource/images/login_11.png">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#152753">&nbsp;</td>
  </tr>
</table>
</asp:Content>